<?php

/**
 * Created by PhpStorm.
 * User: fanfz_000
 * Date: 2015/4/14 0014
 * Time: 8:10
 * 作用 ：
 */
class Ci_sessions_model extends CI_Model
{

    var $session_id = '';
    var $ip_address = '';
    var $user_agent = '';
    var $last_activity = '';
    var $user_data = '';

    function __construct()
    {
        parent::__construct();
    }

    function comparev_session($session_id)
    {
        $sql = $this->db->from('ci_sessions')->where('session_id =', $session_id)->get()->row_array();
        return strlen($sql['user_data']);
    }
}